.#{$namespace}pageColumns--single {
  .#{$namespace}toolTitleNav__button_container {
    &.home {
      top: 0px;
    }
  } 
}

.#{$namespace}multipleTools{
	.#{$namespace}container {
		border: $overview-portlet-border;
		border-radius: $overview-portlet-border-radius;
		box-shadow: var(--overview-portlet-shadow);
		margin-bottom: $standard-spacing;

		&.#{$namespace}toolTitleNav.#{$namespace}container.#{$namespace}container--toolTitleNav {
			border-top: 0;
			border-left: 0;
			border-right: 0;
			box-shadow: none;
			margin: 0 !important;
		}

		.#{$namespace}container--toolTitleNav {
			@include display-flex;
			@include align-items(center);
			@include justify-content(space-between);
			background-color: var(--overview-portlet-title-background-color);
			border-bottom: $overview-portlet-border;
			padding: $standard-spacing;
		}

		.#{$namespace}toolBody {
			border-bottom: none;
		}
	}

	.#{$namespace}toolTitleNav{
		.#{$namespace}toolTitleNav__title{
			display: inline-block;
			font-size: 1em;
			font-weight: 400;
			color: var(--button-text-color);
			margin: 0;
			position: relative;
			
			a{
				margin-right: 0.25em;
			}
		}
	}
}

.#{$namespace}toolTitleNav{
	position: relative;
	@include display-flex;
	@include justify-content(flex-end);

	.#{$namespace}toolTitleNav__title{
		display: none;
		& ~ .#{$namespace}toolTitleNav__button_container > .#{$namespace}directUrl__dropDown{
			display: none;
			.dropDown_close{
				@include sakai_secondary_button();
				cursor: pointer;
				float: right;
				font-size: 1.5em;
				@media #{$phone}{
					font-size: 1.4em;
				}
				&:before {
					@extend .fa;
				}
			}
			&.active{
				padding: $standard-spacing;
				position:   absolute;
				display:    block;
				background: var(--sakai-background-color-1);
				width: 250px;
				margin: -1px 0 0 -250px;
				z-index: 1000;
				border: 1px solid var(--sakai-border-color);
				box-shadow: var(--elevation-3dp);
				
				label{
					font-size: $default-font-size;
					font-weight: normal;
					margin: 0 0 $standard-spacing 0;
					
					&.dropDown_title {
						display: block;
					    font-weight: bold;
					}
				}
				input[type="checkbox"] {
					margin: 0 $standard-space 0 0;		// space between checkbox and label
				}
				textarea{
					display: block;
					height: 120px;
					margin: 0;
					padding: $standard-space;
					width: 100%;
				}
				@media #{$phone}{
					margin: -1px 0 0 -124px;
				}
			}
		}
	}

	.#{$namespace}toolTitleNav__link{
		@include sakai_secondary_button();
		// override some button properties below:
		@include display-flex;
		@include align-items(center);
		margin: 0 0 0 $standard-space;

		&:before {
			@extend .fa;
		}

		@media #{$tablet}{
			margin-right: 0em;
		}
		&--directurl{
			@extend .fa;
			@extend .fa-link;
			/*position: absolute;
			right: #{$icon-size * 1.5};*/
		}
		&--help-popup{
			@extend .fa;
			@extend .fa-question;
		}
		&--edit{
			@extend .fa;
			@extend .fa-pencil;
		}
		&--reset{
			@extend .fa;
			@extend .fa-share;
			display: none;
			font-size: 0.9em;
			float: left;
		}
		
		.#{$namespace}itemTitle{
			margin-left: $standard-space;	// space between text and icon
			@media #{$tablet}{
				display: none;
			}
		}
	}
}

.#{$namespace}toolBody{
	background: var(--tool-background-color);
	border-bottom: 1px solid var(--tool-border-color);
	.portletMainIframe{
		padding: $standard-spacing;
		margin: 0 0 0 0;
		width: 100%;
	}
}

.portletBody
{
	padding: 0;
	margin-bottom: 3rem !important;
	> * {
		position: relative;
	}
	> .modal {
		position: fixed;
	}
	.page-header
	{
		margin: calc(#{$standard-spacing} + 9px) 0; // additional 9px for equallying the header text descenders
		padding: 0 0 $standard-spacing 0;

		h1, h2, h3
		{
			margin: 0;
			padding: 0;
			line-height: 1;
		}

		h6 {
			font-size: $default-font-size;
		}
		h5 {
			font-size: $default-font-size + 0.5px;
		}
		h4 {
			font-size: $default-font-size + 1px;
		}
		h3 {
			font-size: $default-font-size + 1.5px;
		}
		h2 {
			font-size: $default-font-size + 2px;
		}
		h1 {
			font-size: $default-font-size + 3px;
		}
	}
}

.itemNav{
	float: right;
	vertical-align: bottom;
	text-align: right;
	line-height: 2em;
	clear: both;
	margin: 1em 0 0.5em 0;
	white-space: nowrap;
	a{
		white-space: nowrap;
	}
	@media #{$phone}{
		text-align: center;
		white-space: normal;
		input[type="text"], input[type="button"], input[type="reset"], input[type="submit"],button {
			margin: 0.25em 0.1em 0.25em 0;
		}
	}

}

.validationEmbedded,.validation{
	@extend .bs-callout-primary;
}

.alertMessage{
	@extend .bs-callout-danger;
}

//Remove excessive heading margin for bootstrap modals
.modal-title {
	margin-top: 0;
}

.tool-button-container {
	background-color: var(--sakai-background-color-1);
	background-position: right 50%;
	background-repeat: no-repeat;
	color: var(--sakai-text-color-1);
	font-family: "Open Sans", sans-serif;
	font-size: 13px;
	font-weight: 600;
	padding: 0.3em 0.5em 0.3em 0.5em;
	text-align: left;
	max-width: 100%;
	-moz-appearance: none;
	-webkit-appearance: none;
	border-radius: 3px;
	border: 1px solid var(--sakai-border-color);
	margin : 2px;
}
